<?php
session_cache_expire(999999999);
if(!isset($_SESSION)) 
	{ 
		session_start(); 
	}

$value=$_REQUEST["value"];

include '../operations/connection.php';

 mysql_query("INSERT INTO `contract_company` (`name`) VALUES ('$value')");
$companys= array();
$result = mysql_query("SELECT c.* FROM contract_company c WHERE c.isDelete=0;");
while ($r = mysql_fetch_array($result)) {
    $companys[] = array($r['id'], $r['name']);
}
?>
										<select id="addidcompany" style="height: 24px;">
										<?php foreach ($companys as $value => $giatri) {?>
											<option value="<?=$giatri[0]?>"  selected="selected"><?=$giatri[1]?></option>
										<?php } ?>
										</select>
<?php mysql_close($connection);?>